package com.dcdata.jt809server.thread;

import lombok.extern.slf4j.Slf4j;

/**
 * program: JT809Server
 * description:
 * @author DCDATA
 * @date 2020-10-23 16:43
 **/
@Slf4j
public class SafeExecutor {

    public static void execSilence(Worker worker) {
        try {
            worker.work();
        } catch (Throwable e) {
            log.error("线程池优雅关闭出现异常{}", e.getMessage());
        }
    }
}
